/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Initialize;

import GameElements.CTDCreep;

/**
 *
 * @author Admin
 */
public class InitCreep {
    public static CTDCreep CreateCreep(int level, int id, int startPosX, int StartPosY, int WayPathID)
        {
            float wps = level;
            CTDCreep _creep = new CTDCreep();
            _creep.setAudioTyp("Creep");
            _creep.setLP(50 +(level*20));
            _creep.setName("Creep "+id);
            _creep.setUniqueID(id);
            _creep.setWalkSpeed(1.7f + (wps/10));
            _creep.setPosX(startPosX);
            _creep.setPosY(StartPosY);
            _creep.setAbsoluteX(startPosX*24);
            _creep.setAbsoluteY(StartPosY*24);
            _creep.setWayPathID(WayPathID);
            _creep.setSlowSpeed(0f);
            _creep.setCost(0);
            return _creep;
        }
}
